package com.lsf.dunlian.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;
import androidx.recyclerview.widget.LinearLayoutManager;

import com.lsf.dunlian.R;
import com.lsf.dunlian.adapter.FollowUpListRecyclerViewAdapter;
import com.lsf.dunlian.databinding.ActivityFollowupBinding;

import java.util.Arrays;

public class FollowUpActivity  extends Activity {
    private FollowUpListRecyclerViewAdapter adapter;

    private ActivityFollowupBinding binding;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        BaseUtils.setStatusBar(this);
        binding = DataBindingUtil.inflate(LayoutInflater.from(this), R.layout.activity_followup, null, false);
        setContentView(binding.getRoot());

        adapter = new FollowUpListRecyclerViewAdapter(Arrays.asList("111","1231","32131"),this);
        binding.recyclerView.setAdapter(adapter);
        binding.recyclerView.setLayoutManager(new LinearLayoutManager(this));

        binding.xinzeng.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(FollowUpActivity.this,AddFollowUpActivity.class));
            }
        });
    }
}
